package cn.community.care.module.system.controller.admin.inventoryinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 库存信息新增/修改 Request VO")
@Data
public class InventoryInfoSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21387")
    private Long id;

    @Schema(description = "入库日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库日期不能为空")
    private LocalDate entryDate;

    @Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库数量不能为空")
    private Integer entryQuantity;

    @Schema(description = "库存数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "库存数量不能为空")
    private Integer stockQuantity;

    @Schema(description = "安全库存", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "安全库存不能为空")
    private Integer safetyStock;

    @Schema(description = "存放位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "存放位置不能为空")
    private String location;

}